from odoo import api, fields, models


class RpShipOrderValueAddedLineInheritForMarketing(models.Model):
    _inherit = 'rp.ship.order.value.added.line'
    _description = '订单增值服务补充信息'

    adjusted_price_for_marketing = fields.Float(string='营销调后价', digits=(5, 3), copy=False)
    used_coupon_ids = fields.Many2many(string='使用的优惠券', comodel_name='rp.customer.coupon', column1='ship_order_value_added_line_id', column2='customer_coupon_id', default=False, copy=False)
    discounted_price_for_marketing = fields.Float(string='优惠后价格', digits=(5, 3), copy=False)
